package com.sample.tdf.dto;

import cn.com.taiji.common.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Size;


/**
 * 类描述：员工管理类Dto对象
 */
@ApiModel(value = "employee对象")
@Data
@NoArgsConstructor
public class EmployeeDTO  extends BaseDTO{
    private static final long serialVersionUID = 2558887945428876699L;

    @ApiModelProperty(value = "员工工号")
    @Size(min = 4, max = 4, message = "员工工号字段长度为4")
    private String jobNumber;

    //姓名
    @ApiModelProperty(value = "员工姓名")
    @Size(min = 2, max = 20, message = "员工姓名长度只能在2-20之间")
    private String employeeName;

    //性别
    @ApiModelProperty(value = "员工性别")
    private String employeeSex;

    //部门id
    @ApiModelProperty(value = "员工所在部门的Id")
    private String departmentId;

    //部门名称
    @ApiModelProperty(value = "员工部门名称")
    @Size(min = 2, max = 20, message = "员工部门名称长度只能在2-20之间")
    private String departmentName;
}
